Skip to main content

Restore Window

AutomatR.Windows.Activities.RestoreWindow

The "Restore Window" activity in AutomatR facilitates the restoration of a specific window to its original size and position. This activity is particularly useful for managing and interacting with windows within automation workflows.

Properties

NameDescription
Input
Process NameEnter the process name of the window application that needs to be restored.
Process TitleEnter the process title of the window application that needs to be restored.
Display TitleEnter the title of the window application that needs to be restored.
WindowEnter the window variable for the application that needs to be restored.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Restore Window" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Restore Window" activity onto the workflow.
  2. Configure the properties by providing the necessary inputs such as process name, process title, display title, or window variable.
  3. Optionally, configure the delay.
  4. Execute the workflow to restore the specified window to its original size and position.

Example: Consider an example where the "Restore Window" activity is used to restore the window of an application named "MyApp" with a process title "MyAppTitle" and a display title "MyAppDisplayTitle":

Restore Window:
Process Name: "MyApp"
Process Title: "MyAppTitle"
Display Title: "MyAppDisplayTitle"
Delay: 2

In this example, the activity restores the window of the "MyApp" application to its original size and position after a delay of 2 seconds.